<?php
/**
 * Created By Project
 * Author: 陈东
 * Copyright：陈东
 * Source Code：陈东
 * Explain：I shall not authorize for any other commercial purposes, law breakers must be prosecuted.
 */
namespace Admin\Model;
use Think\Model;

class AwardModel extends Model{

    /* 手机话费充值金额 */
    static function teltopup(){
        $res = array(
        	array('1' => 1, 'selected' => ' selected'),
        	array('2' => 2),
        	array('3' => 5),
        	array('4' => 10),
        	array('5' => 20),
        	array('6' => 30),
        	array('7' => 50),
        	array('8' => 100),
        	array('9' => 200),
        	array('10' => 300),
        	array('11' => 500)
        );
        return $res;
    }
    
    /* 奖品分类 */
    static function awardtype(){
    	$res = array(
	    	array('1' => '华人钻'),
	    	array('2' => '实物奖品', 'selected' => ' selected'),
	    	array('3' => '现金红包'),
	    	array('4' => '流量充值'),
	    	array('5' => '手机话费充值'),
    		//array('6' => '加油卡充值')
    	);
    	return $res;
    }
    
    /* 流量分类 */
    static function flowl($type = null){
    	$result = null;
    	$api_url 	= C('T_FLOW_LIST');
		$par 		= array(
			'key'	=> C('T_FLOW_APPKEY')		
		);
		$res = http($api_url,$par,'POST');
		if($res['reason'] == 'success' && $res['error_code'] == 0) $result = $res['result'];
		//print_r($result);
		return $result;
    }


}